package io.gitee.zicai.bus.exception;

import java.util.function.Supplier;

/**
 * BusAdaptorException
 *
 * @author zicai
 * @since 2021-01-18
 */
public class BusAdaptorException extends RuntimeException {

    private BusAdaptorException(String message) {
        super(message);
    }

    public static BusAdaptorException of(String message) {
        return new BusAdaptorException(message);
    }

    public static Supplier<BusAdaptorException> ofSupplier(String message) {
        return () -> of(message);
    }
}
